from selenium.webdriver.common.by import By

from base2 import Base
class Page(Base):
    def find_sousuo(self):
        loc=(By.XPATH,'//android.widget.LinearLayout[@resource-id="com.kongfz.app:id/ll_search"]')
        ele=self.find_ele(loc)
        return ele
    def shuru(self):
        loc=(By.CLASS_NAME,'android.widget.EditText')
        ele=self.find_ele(loc)
        return ele
    def shumu(self):
        loc=(By.ANDROID_UIAUTOMATOR,'new UiSelector().resourceId("com.kongfz.app:id/fl2")')
        ele=self.find_ele(loc)
        return ele
    def paimai(self):
        loc=(By.ID,'com.kongfz.app:id/fl3')
        ele=self.find_ele(loc)
        return ele
    # 封装断言的方法
    def dunayan(self):
        loc=(By.XPATH,'//android.widget.TextView[@resource-id="com.kongfz.app:id/tvAUctionStatus"]')
        ele=self.find_ele(loc)
        return ele
